package com.yike.user.param;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;
import java.util.Date;

/**
 * 用户表
 *
 * @author yike
 * @since 2024-07-17
 */
@Data
@Accessors(chain = true)
@ApiModel(value = "客户参数")
public class CustomerParam implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty("客户ID")
    private Long id;

//    @ApiModelProperty("用户编号")
//    private String userNo;

    @ApiModelProperty("账号")
    private String username;

    @ApiModelProperty("昵称")
    @NotBlank(message = "昵称不能为空")
    private String nickname;

    @ApiModelProperty("手机号")
    @NotBlank(message = "手机号不能为空")
    private String mobile;

    @ApiModelProperty("头像")
    private String headImg;

    @ApiModelProperty("生日")
    private Date birthday;

    @ApiModelProperty("生肖")
    private String zodiac;

    @ApiModelProperty("性别 1男 2女 0未知")
    private Integer sex;

    @ApiModelProperty("省code")
    private String provCode;

    @ApiModelProperty("市code")
    private String cityCode;

    @ApiModelProperty("区code")
    private String distCode;

    @ApiModelProperty("地址")
    private String address;

    @ApiModelProperty("状态：1正常 2禁用")
    private Integer status;

    @ApiModelProperty("分类ID")
    private Long categoryId;

    @ApiModelProperty("购买数量")
    private Integer buyNum;

    @ApiModelProperty("来源")
    private String source;

}
